package d02_Runnable;

public class test {
    public static void main(String[] args) {
        MyRunnable runnable=new MyRunnable();
        Thread thread=new Thread(runnable);
        thread.start();

        Thread thread1=new Thread(()->{
            for (int i = 0; i < 10; i++)
                System.out.println("子线程2:冲浪。。。。。。。。"+i);
        });
        thread1.start();
        for (int i = 0; i < 10; i++) {
            System.out.println("主线程:学习。。。。。。。。"+i);
        }
    }

}
